<template>
  <!-- view div -->
  <view class="content">
    <!-- imamge img -->
    <image class="logo" src="/static/logo.png"></image>
    <view class="text-area">
      <!-- text span -->
      <text @click="changeTitle" class="title">{{ title }}</text>
    </view>
  </view>
</template>

<script setup>
  import { ref } from 'vue'
  const title = ref('牛宝宝')

  const changeTitle = () => {
    title.value = '翻滚吧牛宝宝'
  }
</script>

<style lang="scss">
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: pink;
  }

  .logo {
    height: 200rpx;
    width: 200rpx;
    margin-top: 200rpx;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50rpx;
  }

  .text-area {
    display: flex;
    justify-content: center;
  }

  .title {
    font-size: 36rpx;
    color: $uni-color-error;
  }
</style>
